﻿using Ken_WPF_UI.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;

namespace Ken_WPF_UI.ViewModel
{
    public class MenuItemModel
    {


        public string MKey { get; set; }

        public string MenuName { get; set; }

        public int MenuId { get; set; }

        /// <summary>
        /// 字体颜色
        /// </summary>
        public Brush Foreground { get; set ; }


        public List<MenuItemModel> SubItems { get; set; }

        public MenuItemModel()
        {
            SubItems = new List<MenuItemModel>();
        }

        public ICommand MICommand
        {
            get{
                return new RelayCommand(o=>{

                    MessageBox.Show(MenuName);
                });
            }
        }
    }
}
